export const searchList = [
  {
    type: 'input',
    name: '课程名称',
    field: 'courseName',
  },
]

export const listColumns = [
  {
    title: '课程名称',
    key: 'courseName',
  },
  {
    title: '课程性质',
    key: 'courseNatureName',
  },
  {
    title: '课程负责人',
    key: 'courseDirector',
  },
  {
    title: '状态',
    key: 'clazzStatusName',
  },
  {
    title: '所属学院',
    key: 'collageName',
  },
  {
    title: '所属专业',
    key: 'majorName',
  },
  {
    title: '最近更新时间',
    key: 'updateTime',
  },
]

export const actionArr = [
  {
    action: 'look',
    value: '查看',
  },
  {
    action: 'edit',
    value: '编辑',
  },
  {
    action: 'process',
    value: '办理',
    hiddenList: [
			{
				fileId: 'clazzStatusId',
				showTerm: ['212','213'],
			},
		]
  },
  {
    action: 'del',
    value: '删除',
  },
]
export const btnList = [
  {
    action: 'add',
    value: '新增',
    auth: ''
  }
];
export const rules = {
  courseName: [
    { required: true, message: '请输入课程名称', trigger: 'blur' },
  ],
  courseNatureId: [
    { required: true, message: '请选择课程性质', trigger: 'change' },
  ],
  clazzStatusId: [
    { required: true, message: '请选择课程改革状态', trigger: 'change' },
  ],
  courseCredit: [
    { required: true, message: '请输入课程学分', trigger: 'change' },
  ],
  courseHours: [
    { required: true, message: '请输入课程学时', trigger: 'change' },
  ],
  courseDirector: [
    { required: true, message: '请输入课程负责人', trigger: 'change' },
  ],
  reformApplyDate: [
    { required: true, message: '请选择改革申报时间', trigger: 'change' },
  ],
  collageId: [
    { required: true, message: '请选择所属学院', trigger: 'change' },
  ],
  majorId: [
    { required: true, message: '请选择所属专业', trigger: 'change' },
  ],
  reformReason: [
    { required: true, message: '请输入改革动因', trigger: 'change' },
  ],
  reformContent: [
    { required: true, message: '请输入改革内容', trigger: 'change' },
  ],
  designDocFileId: [
    { required: true, message: '请上传教学设计文档', trigger: 'change' },
  ],
  studentWorkFileId: [
    { required: true, message: '请上传学生典型作业案例', trigger: 'change' },
  ],
}